<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script>
			function Person(name, chinese, math) {
				this.name = name;
				this.chinese = chinese;
				this.math = math;
			}
			Person.prototype.getName = function() {
				return this.name;
			}
			Person.prototype.getChinese = function() {
				return this.chinese;
			}
			Person.prototype.getMath = function() {
				return this.math;
			}

			function Student(name, chinese, math, age) {
				Person.call(this, name, chinese, math);
				this.age = age;

			}
			Student.prototype = new Person();
			Student.prototype.getAge = function() {
				return this.age;
			}

			var stud1 = new Student("小明", "40", "100", "16");
			alert(stud1.getName());
			alert(stud1.getChinese());
			alert(stud1.getMath());
			alert(stud1.getAge());
		</script>
	</body>

</html>